import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/views/Home'
import Album from '@/views/Album'
import Vlog from '@/views/Vlog';
import ChatGPT from '@/views/ChatGPT';
import About from '@/views/About';
import Log from '@/views/Log';
import Login from '@/views/admin/Login';
import AdminMain from '@/views/admin/Main';

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: "/album",
      name: "Album",
      component: Album
    },
    {
      path: "/chatgpt",
      name: "ChatGPT",
      component: ChatGPT
    },
    {
      path: "/vlog",
      name: "Vlog",
      component: Vlog
    },
    {
      path: '/log',
      name: 'Log',
      component: Log
    },
    {
      path: "/about",
      name: "About",
      component: About
    },
    {
      path: '/admin/',
      name: "AdminMain",
      component: AdminMain
    },
    {
      path: "/admin/login",
      name: 'Login',
      component: Login
    }
  ]
})
